package com.sunyard.manage.service.impl;

import com.sunyard.dal.mapper.NonWorkTimeWarningMapper;
import com.sunyard.manage.service.NonWorkTimeWarningService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author wxl
 * @date 2022-07-01 15:36
 */
@Service
@Slf4j
public class NonWorkTimeWarningServiceImpl implements NonWorkTimeWarningService {

    @Autowired
    NonWorkTimeWarningMapper nonWorkTimeWarningMapper;

    /*@Override
    public BaseResult<DataGrid<OperatorLog>> queryByPage(PaginationBO<NonWorkTimeQueryBo> queryBO) {
        log.info("非工作时间预警查询,请求参数["+queryBO.getParams().toString()+"]");
        //设置分页信息
        //PageMethod.startPage(queryBO.getPageNo(), queryBO.getPageSize());
        PageHelper.startPage(queryBO.getPageNo(), queryBO.getPageSize());
        // 执行查询
        List<OperatorLog> operatorLogList = nonWorkTimeWarningMapper.queryByPage(queryBO.getParams());
        // 取分页信息
        PageInfo<OperatorLog> pageInfo = new PageInfo<>(operatorLogList);
        // 设置返回结果
        DataGrid<OperatorLog> dataGrid = new DataGrid<>();
        long total = pageInfo.getTotal();
        dataGrid.setTotal(new Long(total).intValue());
        dataGrid.setRows(operatorLogList);
        return GetResult.getResult(dataGrid);
    }*/

}